package com.zyylr.classroomreservationsystem.web;

import com.zyylr.classroomreservationsystem.bean.Building;
import com.zyylr.classroomreservationsystem.bean.Msg;
import com.zyylr.classroomreservationsystem.bean.User;

import java.util.List;

import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.POST;
import retrofit2.http.Query;


public interface IClassroom {
    /**
     * 根据时间选择空闲教室的retrofit请求接口
     */
    @POST("classroom")
    Call<Msg<List<Building>>> getFreeClassroomCall(@Query("start_time") String startTime, @Query("end_time") String endTime);

    /**
     * 查询所有教室
     *
     * @return
     */
    @GET("classroom")
    Call<Msg<List<Building>>> getAllClassrooms();
}
